package com.hunau.zshop.service;

import com.hunau.zshop.common.exception.LoginErrorException;
import com.hunau.zshop.common.exception.PhoneNotRegistException;
import com.hunau.zshop.pojo.Customer;

import java.util.List;

public interface CustomerService {
    public List<Customer> getAllCustomer();

    public void changeCustomer(Integer id,Integer isValid);

    public void alterCustomer(Customer customer);

    public List<Customer> searchCustomer(Customer customer);

    public Customer login(String loginName, String password) throws LoginErrorException;

    Customer findByPhone(String phone) throws PhoneNotRegistException;
}
